package com.wicket.okrapp.integration.dto;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Objects;

import lombok.Data;

/**
 * @desc UnDocumentDeptDto
 * @使用场景
 */
@Data
public class UnDocumentDeptDto extends BaseDto implements Serializable {

  /**
   * 部门ID
   */
  @ApiModelProperty("部门ID")
  private String deptId;

  /**
   * 部门简称
   */
  @ApiModelProperty("部门简称")
  private String deptShortName;

  @Override
  public boolean equals(Object o) {
    if (this == o) return true;
    if (o == null || getClass() != o.getClass()) return false;
    if (!super.equals(o)) return false;
    UnDocumentDeptDto that = (UnDocumentDeptDto) o;
    return deptId == that.deptId && deptShortName == that.deptShortName;
  }

  @Override
  public int hashCode() {
    return Objects.hash(super.hashCode(), deptId, deptShortName);
  }

}
